<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<link rel="stylesheet" href="../ucs.css">
	</head>
	<body>
	<div id="main" ></div>
	<script type="text/javascript" src="../../dist/libs/u-eventhub.js"></script>
	<script type="text/javascript" src="../../dist/libs/engine.js" ></script>
	<script type="text/javascript" src="../../dist/ucsmy-ui.js"></script>
	<script>
		var userNameDM = new UDM({
			id:'abc',
			name:'abc',
			validator:[
			{type:'require',msg:''},
			{type:'fn',fn:function(v){},msg:"sddfdfdf"}
			]
		});
		var pswDM = new UDM({
			id:'pwd',
			name:'pwd',
			validator:function(){
				
			}
		});
		var btnDM = new UDM({
			id:'btn2',
			name:'btn2',
			click:function(){
				userNameDM.setValue('dfdfdffdfdf');
			}
		});
		var btn2DM = new UDM({
			click:function(){
				alert(userNameDM.getValue());
			}
		});
		var PageDM = {
			input1:userNameDM,
			input2:pswDM,
			btn1:btnDM,
			btn2:btn2DM
		}
	</script>
    </body>
</html>
